﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json.Linq;

namespace APNS.NET
{

    // An alert that can be sent to a device. This represents a basic alert that contains
    // a body only. Can be implicily cast from a string in order to create a simple alert.
    public class ApnsAlert
    {

        public string Body { get; private set;  }
       
        protected ApnsAlert()
        {            
        }

        public static implicit operator ApnsAlert(string alertBody)
        {
            return new ApnsAlert() {Body = alertBody};
        }

        internal protected virtual JToken ToJsonString()
        {
            return new JValue(this.Body);
        }

    }
}
